{% block button_row -%}
    {{- form_widget(form) -}}
{%- endblock button_row %}

{% block form_errors %}
{% spaceless %}
{% if errors|length > 0 %}
{% for error in errors %}
<span class="help-block">
	{{ error.message }}
</span>
{% endfor %}
{% endif %}
{% endspaceless %}
{% endblock form_errors %}

{% block form_row %}
{% if errors|length > 0 %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
	{{ form_label(form) }}
	{{ form_widget(form) }}
	{{ form_errors(form) }}
</div>
{% endblock form_row %}